package com.ruoyi.system.mapper;

import java.util.List;

import com.ruoyi.system.domain.WorkFault;
import org.apache.ibatis.annotations.Param;

/**
 * 故障表Mapper接口
 *
 * @author ruoyi
 * @date 2020-04-20
 */
public interface WorkFaultMapper {
    /**
     * 查询故障表
     *
     * @param id 故障表ID
     * @return 故障表
     */
    public WorkFault selectWorkFaultById(Long id);

    /**
     * 查询故障表列表
     *
     * @param workFault 故障表
     * @return 故障表集合
     */
    public List<WorkFault> selectWorkFaultList(WorkFault workFault);

    /**
     * 新增故障表
     *
     * @param workFault 故障表
     * @return 结果
     */
    public int insertWorkFault(WorkFault workFault);

    /**
     * 修改故障表
     *
     * @param workFault 故障表
     * @return 结果
     */
    public int updateWorkFault(WorkFault workFault);

    /**
     * 删除故障表
     *
     * @param id 故障表ID
     * @return 结果
     */
    public int deleteWorkFaultById(Long id);

    /**
     * 批量删除故障表
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWorkFaultByIds(String[] ids);

    WorkFault findByFormId(@Param("id") Long id);


    List<WorkFault> selectWorkFaultByFormId(String[] id);

    void deleteWorkFaultByFormId(String[] toStrArray);

    Long insertWorkFaultByIds(WorkFault workFault);

    WorkFault selectWorkFaultByForm(@Param("id") Long id);
}
